package com.gimi.cloud.bbp.task.controller;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gimi.cloud.bbp.common.enums.ResponseCodeEnum;
import com.gimi.cloud.bbp.common.utils.JsonUtil;
import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.common.utils.reqhead.Util;
import com.gimi.cloud.bbp.task.service.mall.MallPaymentQueueTaskService;

/**
 * 交易队列定时器
 * @author 李林峰
 * @version 1.0
 * @Description
 * @create 2018年2月6日
 */
@Controller
@RequestMapping("/mall/paymentQueue")
public class MallPaymentQueueController {
	@Autowired MallPaymentQueueTaskService mallPaymentQueueTaskService;
	
	@RequestMapping("/queryTask")
	private void queryTask(HttpServletResponse response) {
		mallPaymentQueueTaskService.queryTask();
		Util.sendResponse(JsonUtil.toJson(new Response(ResponseCodeEnum.SUCCESSED)),response);
	}
}